﻿#:import FittableLabel ui.fittable_widgets.FittableLabel
#:import DisableableButton ui.disableable_button.DisableableButton
#:import ConfirmationButton ui.confirmation_button.ConfirmationButton

<GuessWordScreen>:
    guess_button: btn
    skip_button: skip_btn
    pause_button: pause_btn
    word_label: wlabel
    progress_bar: pr_bar
    orientation: 'vertical'
    BoxLayout:
        orientation: 'horizontal'
        size_hint_y: 0.2
        DisableableButton:
            id: pause_btn
            size_hint_x: 0.2
            size_hint_y: 0.4
            text: _('Pause')
            on_release: root.paused()
        ProgressBar:
            id: pr_bar
            size_hint_y: 0.4
            value: root.pbValue
            max: root.pbMaxValue
    BoxLayout:
        orientation: 'horizontal'
        DisableableButton:
            id: left_btn
            color: 0,1,0,1
            on_release: root.button_released(0)
            on_press: root.button_pressed(0)
        FittableLabel:
            id: wlabel
            text: root.word_str
        DisableableButton:
            id: right_btn
            color: 0,1,0,1
            on_release: root.button_released(1)
            on_press: root.button_pressed(1)
    BoxLayout:
        orientation: 'horizontal'
        BoxLayout:
            orientation: 'vertical'
            ConfirmationButton:
                color_normal: 1,0,0,1
                text_normal: _('Fail')
                on_confirm: root.fail()
            ConfirmationButton:
                id: skip_btn
                color_normal: 1,1,1,1                
                on_confirm: root.put_back()
        DisableableButton:
            id: btn
            color: 0,1,0,1
            text: _('Guessed')
            on_release: root.guessed()




